package com.linzt.candy.gateway.service;

import java.io.IOException;
import com.linzt.candy.common.core.exception.CaptchaException;
import com.linzt.candy.common.core.web.domain.AjaxResult;

/**
 * @Author: linzt
 * @Datetime: 2020/11/13 10:10
 * @Description: 验证码处理
 * @Version: 1.0
 */
public interface ValidateCodeService {

    /**
     * 生成验证码
     */
    public AjaxResult createCapcha() throws IOException, CaptchaException;

    /**
     * 校验验证码
     */
    public void checkCapcha(String key, String value) throws CaptchaException;
}
